package com.it.tydic.estate.module.model.inner;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.*;

@Table(name = "tb_group")
public class TbGroup {
    @Id
    @Column(name = "GROUP_ID")
    private String groupId;

    @Column(name = "GROUP_NAME")
    private String groupName;

    @Column(name = "GROUP_DESC")
    private String groupDesc;

    @Column(name = "PARENT_ID")
    private String parentId;

    @Column(name = "GROUP_ORDER")
    private Integer groupOrder;

    @Column(name = "GROUP_PATH")
    private String groupPath;

    @Column(name = "GROUP_DEPTH")
    private Integer groupDepth;

    @Column(name = "GROUP_STATUS")
    private Integer groupStatus;

    @Column(name = "CREATE_TIME")
    private Date createTime;

    @Column(name = "CREATE_USER")
    private String createUser;

    @Column(name = "UPDATE_TIME")
    private Date updateTime;

    @Column(name = "UPDATE_USER")
    private String updateUser;

    /**
     * @return GROUP_ID
     */
    public String getGroupId() {
        return groupId;
    }

    /**
     * @param groupId
     */
    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    /**
     * @return GROUP_NAME
     */
    public String getGroupName() {
        return groupName;
    }

    /**
     * @param groupName
     */
    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    /**
     * @return GROUP_DESC
     */
    public String getGroupDesc() {
        return groupDesc;
    }

    /**
     * @param groupDesc
     */
    public void setGroupDesc(String groupDesc) {
        this.groupDesc = groupDesc;
    }

    /**
     * @return PARENT_ID
     */
    public String getParentId() {
        return parentId;
    }

    /**
     * @param parentId
     */
    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    /**
     * @return GROUP_ORDER
     */
    public Integer getGroupOrder() {
        return groupOrder;
    }

    /**
     * @param groupOrder
     */
    public void setGroupOrder(Integer groupOrder) {
        this.groupOrder = groupOrder;
    }

    /**
     * @return GROUP_PATH
     */
    public String getGroupPath() {
        return groupPath;
    }

    /**
     * @param groupPath
     */
    public void setGroupPath(String groupPath) {
        this.groupPath = groupPath;
    }

    /**
     * @return GROUP_DEPTH
     */
    public Integer getGroupDepth() {
        return groupDepth;
    }

    /**
     * @param groupDepth
     */
    public void setGroupDepth(Integer groupDepth) {
        this.groupDepth = groupDepth;
    }

    /**
     * @return GROUP_STATUS
     */
    public Integer getGroupStatus() {
        return groupStatus;
    }

    /**
     * @param groupStatus
     */
    public void setGroupStatus(Integer groupStatus) {
        this.groupStatus = groupStatus;
    }

    /**
     * @return CREATE_TIME
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return CREATE_USER
     */
    public String getCreateUser() {
        return createUser;
    }

    /**
     * @param createUser
     */
    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    /**
     * @return UPDATE_TIME
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * @return UPDATE_USER
     */
    public String getUpdateUser() {
        return updateUser;
    }

    /**
     * @param updateUser
     */
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Transient
    private List<TbGroup> children=new ArrayList<>();


    public List<TbGroup> getChildren() {
        return children;
    }

    public void setChildren(List<TbGroup> children) {
        this.children = children;
    }
}